﻿#ifndef INTERCOM_PROXY_H
#define INTERCOM_PROXY_H

#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
#include <QMap>
#include "oeasycommon.h"
#include "configfile.h"
#include "commonfuc.h"
#include <QTimer>
#include "httpserver.h"

class IntercomProxy : public QObject
{
    Q_OBJECT
public:
    explicit IntercomProxy(int port, QObject *parent = 0);
    ~IntercomProxy();
    void listen();

private:
    HttpServer *m_server;
    ConfigFile m_cfg;
    unsigned short m_listenPort;

signals:
    void textRecv(QString);
    void sigOpenDoor(QByteArray);

public slots:
    void onGetOpenDoorData(QString,QByteArray);
};

#endif // INTERCOM_PROXY_H
